@import "./styles/colors";

::ng-deep *:not(input) {
  -webkit-touch-callout: none !important; /* iOS Safari */
    -webkit-user-select: none !important; /* Safari */
     -khtml-user-select: none !important; /* Konqueror HTML */
       -moz-user-select: none !important; /* Old versions of Firefox */
        -ms-user-select: none !important; /* Internet Explorer/Edge */
            user-select: none !important; /* Non-prefixed version, currently
                                  supported by Chrome, Edge, Opera and Firefox */

  &::-webkit-scrollbar {
    display: none;
  }
}

::ng-deep .pointer {
  cursor: pointer !important;

  & * {
    cursor: pointer !important;
  }
}

$noise: url('');

::ng-deep html, body {
  width: 100vw !important;
  height: 100vh !important;
  max-width: 100vw !important;
  max-height: 100vh !important;
  
  margin: 0;
  overflow: hidden;
  background-image: $noise;
  background-color: $gradient-end;
  /* Adjust font size */
  font-size: 100%;
  -webkit-text-size-adjust: 100%;
  /* Smoothing */
  text-rendering: optimizeLegibility;
  text-shadow: rgba(0, 0, 0, .01) 0 0 1px;
  -webkit-font-smoothing: subpixel-antialiased;
  &::-webkit-scrollbar {
    display: none;
  }
  transform: perspective(1px) translateZ(0);
  backface-visibility: hidden;
}


.container {
  position: relative;
  display: inline-block;
  padding-top: 25px;
  transform-origin: top left;
  $border-radius: 0px;
  
  min-width: 400px; 
  top: 0;
  left: 0;

  background-image: $noise, linear-gradient($gradient-start, $gradient-end);
  overflow: hidden;

  .loader {
    width: 100%;
    height: 100%;
    background-image: $noise;
    background-color: $gradient-end;
    position: absolute;
    z-index: 99;
  }

  .fill-width {
    width: 100%;
  }
  
  .show-hide {
    position: absolute;
    right: 5px;
    top: 0;
  }
  
  .on-off {
    position: absolute;
    left: 5px;
    top: 0;
  }

  .header {
    position: absolute;
    top: 0;
    width: 100%;
    z-index: 3;
  }

  .dropdown-section {
    width: 100%;
    background-color: $gradient-end;
    box-shadow: 0px 8px 77px 2px rgba(0,0,0,0.56);
    padding: 10px;
    $border: 1px solid black;
    border-bottom: $border;
    max-width: 400px;
    box-sizing: border-box;
    position: absolute;
    z-index: 5;
    transform-origin: right top;
    right: 0;
  }
  
}

.tooltip-container {
  position: absolute;
  pointer-events: none;
  transform-origin: top left;
  z-index: 9999;
  min-width: 400px; 
  top: 0;
  left: 0;
}